#include <iostream>
using namespace std;
#define MYSWAP_CPP 1
//#define MYSWAP_C 1
#define TYPE int
template <class T>
void MySwap_cpp(T &a, T &b)
{
	T temp;
	temp = a;
	a = b;
	b = temp;
}
void MySwap_c(TYPE *a, TYPE *b)
{
	TYPE temp = *a;
	*a = *b;
	*b = temp;
}
int main()
{
	TYPE a, b;
	cout << "Enter a and b@> ";
	cin >> a >> b;
	cout << "a= " << a << ",b= " << b << endl;
#ifdef MYSWAP_CPP
	MySwap_cpp(a, b);
#endif
#ifdef MYSWAP_C
	MySwap_c(&a, &b);
#endif
	cout << "a= " << a << ",b= " << b << endl;
	return 0;
}
